package com.teach.controller.photo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.teach.service.impl.NewsServiceImpl;

@RestController
@RequestMapping("/photo")
public class PhotoUserArticleController {
	
	@Autowired
	private NewsServiceImpl impl;
	
	@RequestMapping("user-article.do")
	public Object userArticle(String photoWriterId) {
		return impl.selectByNewsWorker(photoWriterId);
	}
}
